package org.nterlearning.datamodel.catalog.model.impl;

import com.liferay.portal.kernel.exception.SystemException;

import org.nterlearning.datamodel.catalog.model.CourseRelated;
import org.nterlearning.datamodel.catalog.service.CourseRelatedLocalServiceUtil;

/**
 * The extended model base implementation for the CourseRelated service. Represents a row in the &quot;CATALOG_CourseRelated&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link CourseRelatedImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see CourseRelatedImpl
 * @see org.nterlearning.datamodel.catalog.model.CourseRelated
 * @generated
 */
public abstract class CourseRelatedBaseImpl extends CourseRelatedModelImpl
    implements CourseRelated {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a course related model instance should use the {@link CourseRelated} interface instead.
     */
    public void persist() throws SystemException {
        if (this.isNew()) {
            CourseRelatedLocalServiceUtil.addCourseRelated(this);
        } else {
            CourseRelatedLocalServiceUtil.updateCourseRelated(this);
        }
    }
}
